package com.zhg.recorddemo.helper;

import android.content.Context;
import android.content.Intent;
import android.os.Build;

public class SystemBarUtil {
    public static final String DEVICE_WOSHENG = "rk3288_box";
    public static void doHideSystemBar(Context act) {
        Intent intent = new Intent();
        if (DEVICE_WOSHENG.equals(Build.MODEL)) {
            intent.setAction("android.intent.action.hideNaviBar");//
            intent.putExtra("hide", true); // true 隐藏 false 显示
            act.sendBroadcast(intent);
        }
    }

    public static void doShowSystemBar(Context act) {
        Intent intent = new Intent();
        if (DEVICE_WOSHENG.equals(Build.MODEL)) {
            intent.setAction("android.intent.action.hideNaviBar");//
            intent.putExtra("hide", false); // true 隐藏 false 显示
            act.sendBroadcast(intent);
        }
    }



}
